package com.xja.security.service.imp;

import com.xja.security.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 周广瑞
 * @date 2022/4/12 14:38
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Override
    public List<String> findRoleByAid(Integer aid) {
        List<String>roleList = new ArrayList<>();
        roleList.add("ROLE_login_manager");
        if (aid==1){
            roleList.add("ROLE_user_manager");
        }if (aid==2){
            roleList.add("ROLE_prod_manager");
        }
        return roleList;
    }
}
